<?php

namespace common\model;

use think\model\RelationModel;

class TenantDingtalkModel extends RelationModel
{
    //自动验证
    protected $_validate = [
        ['tenant_id', '', '', self::MUST_VALIDATE, 'require', self::MODEL_INSERT], //必须字段
        ['tenant_id', '', '', self::MUST_VALIDATE, 'integer', self::MODEL_INSERT], //必须字段
        ['tenant_id', '', '', self::EXISTS_VALIDATE, 'unique'],
        ['corp_id', '1,64', '', self::EXISTS_VALIDATE, 'length'],
        ['app_key', '1,64', '', self::EXISTS_VALIDATE, 'length'],
        ['app_secret', '1,128', '', self::EXISTS_VALIDATE, 'length'],
        ['working_hours', '1,24', '', self::EXISTS_VALIDATE, 'between']
    ];

    // 自动完成
    protected $_auto = [
    ];
}
